package com.example.quartz.task;

import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import com.example.quartz.utils.TransactionJob;
import com.tucaocun.controller.DubboApi;
import com.tucaocun.service.DubboTucaocunService;

public class TestDubboJob extends TransactionJob {
	
	DubboTucaocunService dubboTucaocunService = DubboApi.getDubboTucaocunService();

	@Override
	protected void run(JobExecutionContext context) throws JobExecutionException {
		System.out.println("*****************************************dubboTest start!****************************************");
		dubboTucaocunService.testService();
		System.out.println("*****************************************dubboTest over!****************************************");
	}
	
	public static void main(String[] args) {
		System.out.println("*****************************************dubboTest start!****************************************");
		DubboTucaocunService dubboTucaocunService = DubboApi.getDubboTucaocunService();
		dubboTucaocunService.testService();
		System.out.println("*****************************************dubboTest over!****************************************");
	}
}
